﻿using DataModels.Enums.Bill;
using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Bill
{
    [SugarTable]
    public class PaymentCoupon
    {
        [SugarColumn(IsPrimaryKey =true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 优惠券抵扣金额
        /// </summary>
        public decimal Price { get; set; } = 0;

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 优惠券类型
        /// </summary>
        public PaymentCouponType Type { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public Status Status { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Status IsDeleted { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public Guid CreateUserUUID { get; set; }

        public DateTime? UpdateTime { get; set; }

        public Guid? UpdateUserUUID { get; set; }
    }
}
